<%@ Assembly Name="Starznet.SharePoint.SPDAT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=74e3ac9236a77c47" %>
<%@ Assembly Name="Starznet.SharePoint.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=eaf3f5a885a2d969" %>
<%@ Page Language="C#" Inherits="Starznet.SharePoint.SPDAT.ApplicationPages.Settings.SiteListTemplatesPage" MasterPageFile="~/_layouts/application.master"%>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.Utilities" %>
<%@ Import Namespace="Starznet.SharePoint" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register Tagprefix="Starznet" Namespace="Starznet.SharePoint.Controls.Web" Assembly="Starznet.SharePoint.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=eaf3f5a885a2d969" %>
<asp:Content contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:szadm,DevHelp_ListTemplate_PageTitle%>" EncodeMethod="HtmlEncode"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:szadm,DevHelp_ListTemplate_PageTitle%>" EncodeMethod="HtmlEncode"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="<%$Resources:szadm,DevHelp_ListTemplate_PageDesc%>" EncodeMethod="HtmlEncode"/>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageImage" runat="server">
	<a href="http://www.starznet.co.uk" title="Visit the Starznet website" target="_blank">
	    <img src="/_layouts/Starznet/StarznetPageGraphic.gif" alt="Starznet Ltd" style="margin-top:3px;border:0px;"/>
	</a>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script type="text/javascript">
    function ShowHide(name)
    {
        var o = document.getElementById('div_' + name);
        if(o.style.display == 'none')
            o.style.display = 'block';
        else
            o.style.display = 'none';
    }
    function CopyText(name)
    {
        var oHoldText = document.getElementById('txt_' + name);
        var oOriginalText = document.getElementById('xml_' + name);
        var oCopied;
        
        oHoldText.innerText = oOriginalText.innerText;
        
        oCopied = oHoldText.createTextRange();
        oCopied.execCommand("Copy");
    }
</script>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
	    <td colspan="2">
		    <Starznet:GroupingRepeater ID="RptTemplates" runat="server">
		        <HeaderTemplate>
		            <table width="100%" cellpadding="0" cellspacing="0">
		            <colgroup>
		                <col width="33%" />
		                <col width="33%" />
		                <col width="34%" />
		            </colgroup>
		            <tr>
		                <th id="DisplayNameHeading" class="ms-vh2" style="padding-top:4px;padding-bottom:4px">
		                    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="<%$Resources:szadm,DevHelp_Columns_DisplayNameColTitle%>" EncodeMethod="HtmlEncode" />
		                </th>
		                <th id="InternalNameHeading" class="ms-vh2" style="padding-top:4px;padding-bottom:4px">
		                    <SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" Text="<%$Resources:szadm,DevHelp_Columns_InternalNameColTitle%>" EncodeMethod="HtmlEncode" />
		                </th>
		                <th id="IDHeading" class="ms-vh2" style="padding-top:4px;padding-bottom:4px">
		                    <SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:szadm,DevHelp_Columns_UniqueColTitle%>" EncodeMethod="HtmlEncode" />
		                </th>
		            </tr>
		        </HeaderTemplate>
		        <GroupTemplateHeader>
		            <tr>
		                <td colspan="3" class="ms-vb2">
		                    <b><%# ((string)DataBinder.Eval(Container.DataItem, "Feature")) %></b>
		                </td>
		            </tr>
		        </GroupTemplateHeader>
		        <ItemTemplate>
		            <tr class="">
		                <td class="ms-vb2">
		                    &nbsp;&nbsp;
		                    <a style="cursor:hand;" onclick="ShowHide('<%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "InternalName")) %>');">
		                        <%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "DisplayName")) %>
		                    </a>
		                </td>
		                <td class="ms-vb2">
		                    <%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "InternalName")) %>
		                </td>
		                <td class="ms-vb2">
		                    <%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "Unique")) %>
		                </td>
		            </tr>
		            <tr>
		                <td colspan="3" class="ms-vb2">
		                    <div id="div_<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>"
		                        style="display:none;background-color:#f2f2f2;border:solid 1px #d4d0c8;">
		                        <b><SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:szadm,DevHelp_Columns_XMLSchemaColTitle%>" EncodeMethod="HtmlEncode" /> :</b>&nbsp;&nbsp;<a style="cursor:hand;" onclick="CopyText('<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>');">copy</a><br />
		                        <div style="width:100%;overflow:auto;" id="xml_<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>">
		                            <%# Utility.TransformXML((string)DataBinder.Eval(Container.DataItem, "SchemaXML"))%>
		                        </div>
		                        <textarea id="txt_<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>" style="display:none;"></textarea>
		                    </div>
		                </td>
		            </tr>
		        </ItemTemplate>
		        <AlternatingItemTemplate>
		            <tr class="ms-alternating">
		                <td class="ms-vb2">
		                    &nbsp;&nbsp;
		                    <a style="cursor:hand;" onclick="ShowHide('<%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "InternalName")) %>');">
		                        <%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "DisplayName")) %>
		                    </a>
		                </td>
		                <td class="ms-vb2">
		                    <%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "InternalName")) %>
		                </td>
		                <td class="ms-vb2">
		                    <%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "Unique")) %>
		                </td>
		            </tr>
		            <tr>
		                <td colspan="3" class="ms-vb2">
		                    <div id="div_<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>"
		                        style="display:none;background-color:#f2f2f2;border:solid 1px #d4d0c8;">
		                        <b><SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:szadm,DevHelp_Columns_XMLSchemaColTitle%>" EncodeMethod="HtmlEncode" /> :</b>&nbsp;&nbsp;<a style="cursor:hand;" onclick="CopyText('<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>');">copy</a><br />
		                        <div style="width:100%;overflow:auto;" id="xml_<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>">
		                            <%# Utility.TransformXML((string)DataBinder.Eval(Container.DataItem, "SchemaXML"))%>
		                        </div>
		                        <textarea id="txt_<%# DataBinder.Eval(Container.DataItem, "InternalName").ToString() %>" style="display:none;"></textarea>
		                    </div>
		                </td>
		            </tr>
		        </AlternatingItemTemplate>
		        <FooterTemplate>
		            </table>
		        </FooterTemplate>
		    </Starznet:GroupingRepeater>
	    </td>
	</tr>
</table>
</asp:Content>
